<ul class="breadcrumb"><span style="font-size:14px;font-weight:bold;">Assign Core Subjects</span> </ul>    
<div id="core_subject_html"  align="center">
<div>Session: <?php echo $academic_session;?>
<input type="hidden" id="academic_session" value="<?php echo $academic_session;?>" ></div>
<table style="text-align: center;width: 50%" align="center" class="globaltable globaltable-striped globaltable-bordered globaltable-condensed">
<tr></tr>
  <tr><th>Humanities Group</th><th>Science Group</th><th>Business Studies Group</th></tr>
  
  <tr>
    <td>
    <?php
	  foreach($code_subject as $row)
		{
		    if($row["group_id"]=="Humanities")
		   echo '<div>'.$row["subject_name"].'</div>';
		}
	?>
    </td>
    <td><?php
	  foreach($code_subject as $row)
		{
		    if($row["group_id"]=="Science")
		   echo '<div>'.$row["subject_name"].'</div>';
		}
	?></td>
    <td><?php
	  foreach($code_subject as $row)
		{
		    if($row["group_id"]=="Business Studies")
		   echo '<div>'.$row["subject_name"].'</div>';
		}
	?></td>
  </tr>
</table>
<div><input type="button" value="Assign Core subject for All Student" id="assign_subject" onclick="call_assign_core_subject()" class="btn btn-info"></div>
</div>

	    <div onMouseUp="return false" class="translucent" onMouseMove="return false" onMouseDown="return false"
                                                                id="blockDim" onDblClick="return false" style="DISPLAY: none; Z-INDEX: 50000; LEFT: 0px; POSITION: absolute; TOP: 0px; BACKGROUND-COLOR: #FFFFFF;border: 1px solid black;text-align: center;"
                                                                onclick="return false" >
           <img src="<?php echo base_url(); ?>assets/img/ajax-loader5.gif" id="imagePosition">
           <div id="loading" style="font-size: 20px;font-weight: bold"></div>                                                             
         </div>